﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace TMDT.BusinessObjects
{
    public class ChungLoaiSanPham
    {
        public Guid IDChungLoai { get; set; }
        public string TenChungLoai { get; set; }

        public static ChungLoaiSanPham Convert(DataRow row)
        {
            ChungLoaiSanPham chungLoaiSanPham = new ChungLoaiSanPham();
            chungLoaiSanPham.IDChungLoai = new Guid(row["IDChungLoai"].ToString());
            chungLoaiSanPham.TenChungLoai = row["TenChungLoai"].ToString();

            return chungLoaiSanPham;
        }
        

    }
}
